package com.youkeyi.ddy.cloud.common.api.application.business.crm.customer;

import com.youkeyi.ddy.cloud.common.api.application.business.crm.customer.dto.BusinessCustomerDetailCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.customer.dto.BusinessCustomerListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.customer.param.*;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;

/**
 * BusinessCustomerCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/business/customer/fallback")
public class BusinessCustomerCloudServiceFallback implements BusinessCustomerCloudService {

    @Override
    public BusinessCustomerListCloudDto list(BusinessCustomerListCloudParam param) {
        return new BusinessCustomerListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public void exportXls(HttpServletResponse response, BusinessCustomerListCloudParam param) {
        return;
    }

    @Override
    public BusinessCustomerDetailCloudDto detail(String customerPrimaryKey) {
        return new BusinessCustomerDetailCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public BusinessCustomerListCloudDto certificateExpirationReminder() {
        return new BusinessCustomerListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(BusinessCustomerCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent refer(BusinessCustomerReferCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(BusinessCustomerUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent transfer(BusinessCustomerTransferCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent distribute(BusinessCustomerDistributeCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(BusinessCustomerDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public BusinessCustomerListCloudDto sameDayList(BusinessCustomerListCloudParam param) {
        return new BusinessCustomerListCloudDto(Boolean.FALSE, "服务不可用");
    }
}
